package com.wac.data.service;

import com.wac.data.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author beta
 * @since 2023-03-16
 */
public interface ArticleService extends IService<Article> {

	boolean addArticle(Article article, List<MultipartFile> file);

	//文章信息相关
	Map<String, Object> getArticle(int page);

	Article getArticleById(String id);

	//模糊查询
	Map<String, Object> search(String text, int page);

	boolean delete(String id);

}
